﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using Pampa.WebControls;

namespace Pampa.MVC.Fluent.CustomControls
{
    public class CollapsablePanelEndBuilder : IHtmlString 
    {
        private readonly CollapsablePanel _collapsablePanel;

        public CollapsablePanelEndBuilder(CollapsablePanel collapsablePanel)
        {
            _collapsablePanel = collapsablePanel;
        }

        public string ToHtmlString()
        {
            var sb = new StringBuilder();
            sb.Append(_collapsablePanel.RenderEndTag());

            return sb.ToString();
        }
    }
}
